Finite differences and finite elements: getting to know you

نویسنده

  • Dianne P. O'Leary
چکیده

T o debug your programs, it’s helpful to experiment with the simplest test problem and a small number of mesh points. Look ahead to Problem 6 for sample problems. Problem 2 uses the Matlab function spdiags to construct a sparse matrix. If you have never used sparse matrices in Matlab, print the matrix A to see that its data structure contains the row index, column index, and value for each nonzero element. If you have never used spdiags, type help spdiags to see the documentation, and then try it on your own data to see exactly how the matrix elements are defined. Use Matlab’s quad to compute the integrals for the entries in the matrix and right-hand side for the finite element formulations. Before tackling the programming for Problems 5 and 6, take some time to understand exactly where the nonzeros are in the matrix, and exactly what intervals of integration should be used. The programs are short, but it’s easy to make mistakes if you don’t understand what they compute. In Problem 7, we measure work by counting the number of multiplications. One alternative is to count the number of floating-point computations, but this usually gives a count of about twice the number of multiplications, because multiplications and additions are typically paired in computations. Computing time is another very useful measure of work, but it can be contaminated by the effects of other users or computer processes. In determining and understanding the convergence rate in Problem 7, plotting the solutions or the error norms might be helpful. Mark Gockenbach gives a good introduction to the theory of finite difference and finite element methods;1 for a more advanced treatment, see, for example, Stig Larsson and Vidar Thomée’s book.2

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Modifying Stress-Strain Curves Using Optimization and Finite Elements Simulation Methods

Modifying stress-strain curves is one of the important topics in mechanical engineering and materials science. Real stress-strain curves should be modified after necking point as stress becomes three-dimensional after creation of throat, and consequently, equivalent stress should be used instead of axial one. Also, distribution of triple stresses across throat section is not uniform anymore, an...

متن کامل

An Enhanced Finite Element method for Two Dimensional Linear Viscoelasticity using Complex Fourier Elements

In this paper, the finite element analysis of two-dimensional linear viscoelastic problems is performed using quadrilateral complex Fourier elements and, the results are compared with those obtained by quadrilateral classic Lagrange elements. Complex Fourier shape functions contain a shape parameter which is a constant unknown parameter adopted to enhance approximation’s accuracy. Since the iso...

متن کامل

Mixed-Mode Stress Intensity Factors for Surface Cracks in Functionally Graded Materials Using Enriched Finite Elements

Three-dimensional enriched finite elements are used to compute mixed-mode stress intensity factors (SIFs) for three-dimensional cracks in elastic functionally graded materials (FGMs) that are subject to general mixed-mode loading. The method, which advantageously does not require special mesh configuration/modifications and post-processing of finite element results, is an enhancement of previou...

متن کامل

Pairwise‎ ‎non-commuting elements in finite metacyclic $2$-groups and some finite $p$-groups

Let $G$ be a finite group‎. ‎A subset $X$ of $G$ is a set of pairwise non-commuting elements‎ ‎if any two distinct elements of $X$ do not commute‎. ‎In this paper‎ ‎we determine the maximum size of these subsets in any finite‎ ‎non-abelian metacyclic $2$-group and in any finite non-abelian $p$-group with an abelian maximal subgroup‎.

متن کامل

Computational and Programming Aspects of Transition Elements in a Three-dimensional Finite Element Program

The performance of any finite element (FE) structural analysis is directly related to the global number of nodes and degrees of freedom (DOF) of the discretized structure and mesh distribution attributes. It is obvious that the appropriate numerical analysis needs finer elements in the zone of interest, e.g. zone of high stress concentration and intensity, and coarser elements for farther porti...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • Computing in Science and Engineering

دوره 7  شماره 

صفحات  -

تاریخ انتشار 2005